package com.kaili.basic.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.kaili.basic.pojo.dto.*;
import com.kaili.basic.pojo.entity.WarehousingReturn;
import com.kaili.basic.pojo.entity.WarehousingReturnExport;

import java.util.List;

/**
 * Created by xxx on 2019-03-07.
 */
public interface WarehousingReturnService {
    //添加入库退货
    int addWarehousingReturn(WarehousingReturnAddDto warehousingReturnAddDto);

    //删除入库退货
    int deleteWarehousingReturn(WarehousingReturn warehousingReturn);

    //删除入库退货
    int deleteWarehousingReturns(BusinessOperationDeleteDto deleteDto);

    //条件查询获取入库退货详细信息
    Page<WarehousingReturn> queryWarehousingReturn(Page<WarehousingReturn> page, WarehousingReturnQueryDto warehousingReturn);

    //id查询获取入库退货详细信息
    WarehousingReturn queryWarehousingReturnById(Long returnId);

    //确认或者取消
    int updateAffirmOrCancel(WarehousingReturn warehousingReturn);

    //查询当前数据库中的最大ID
    Long getMaxReturnId();

    //导出
    List<WarehousingReturnExport> queryWarehousingReturnExport(WarehousingReturnQueryDto warehousingReturnQueryDto);
}
